//
//  RootViewController.h
//  Microtalk
//
//  Created by Dario Trisciuoglio on 18/03/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TBXML.h"
#import "AutoDownloadImageView.h"
#import "MTCostants.h"

@interface ArtTBXMLViewController : UIViewController <UITableViewDelegate,UITableViewDataSource,AutoDownloadImageViewDelegate>{

	// elenco degli elementi letti dal feed
	NSMutableArray *elencoFeed;
	//variabile temporanea per ogni elemento
	NSMutableDictionary *item;
    //variabili per ogni elemento del parser
    NSString *title,*link,*description,*imageURL,*path;
    //variabile dell'url del xml
    NSString *URLparser;

    IBOutlet UITableView *listaTabella;
    IBOutlet UIView *spinnerView;
    IBOutlet UIActivityIndicatorView *spinner;
}

@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;
@property (nonatomic, retain) IBOutlet UITableView *listaTabella;
@property (nonatomic, retain) IBOutlet UIView *spinnerView;

- (void) traverseElement:(TBXMLElement *)element;
- (void)loadURL;
@end
